<template>
  <div class="list">
    <div class="xun" v-for="item in list " :key="item.id" >
        <img src="https://img2.baidu.com/it/u=704769244,2739936837&fm=253&fmt=auto&app=120&f=JPEG?w=853&h=500"> 
        <p>{{item.name}}</p>
        <p>{{item.price}}</p>
    </div>
  </div>
</template>

<script>
import axios from 'axios'
export default {
   data(){
    return{
      list:[],
    }
   },
 async created(){
    const res=await axios.get("/api/blindbox/shuma.do");
    this.list=res.data.data;
 }
}
</script>

<style scoped>
.list{
    display: flex;
     justify-content: space-around;
     flex-wrap: wrap;
   }
   .xun{
    width: 45%;
   }
   .xun p{
    text-align: center;
   }
</style>